from selenium import webdriver


# 使用不同的浏览器打开网页
def openBrowser(dri):
    if dri == "chrome":
        return webdriver.Chrome()
    elif dri == "firefox":
        return webdriver.Firefox()
    elif dri == "ie":
        return webdriver.Ie()
    elif dri == "edge":
        return webdriver.Edge()
    else:
        print("浏览器类型不支持")
        pass